package time;

import java.time.LocalDate;
import java.time.format.DateTimeFormatter;

public class ParseDemo {

	public static void main(String[] args) {
		String now = "01/04/2018";	
		LocalDate.parse(now,DateTimeFormatter.ofPattern("MM/dd/yyyy"));
		
		DateTimeFormatter.ofPattern("MM/dd/yyyy").parse(now);
		DateTimeFormatter.ofPattern("MM/dd/yyyy").parse(now,LocalDate::from);
		
		
	}
}
